"""
@Time: 2020/12/29 下午 8:38
@Author: jinzhuan
@File: ace2005.py
@Desc: 
"""
import sys
sys.path.append('/data/zhuoran/code/cognlp')
from cognlp.io.loader.re.ace2005 import ACE2005RelationLoader
from cognlp.io.processor.re.ace2005 import ACE2005RelationProcessor

loader = ACE2005RelationLoader()
train_data, dev_data, test_data = loader.load_all('../../../../cognlp/data/re/ace2005/data')
processor = ACE2005RelationProcessor(path='../../../../cognlp/data/re/ace2005/data')
train_datable = processor.process(train_data)
dev_datable = processor.process(dev_data)
test_datable = processor.process(test_data)
train_datable.save_table('../../../../cognlp/data/re/ace2005/data/train.json')
dev_datable.save_table('../../../../cognlp/data/re/ace2005/data/dev.json')
test_datable.save_table('../../../../cognlp/data/re/ace2005/data/test.json')
print(1)
